//封装轮播图
//获取轮播图
import {getbannerinfo} from '@/apis/home.js'
import { ref,onMounted } from "vue"
export function usebanner() {
    //获取banner轮播图
    //导入接口
    const bannerlist = ref([])
    const getbanner = (async () => {
        const res = await getbannerinfo('2')
        bannerlist.value = res.result
    })
    onMounted(() => {
        getbanner()
      })
    return {bannerlist}
}